FROM busybox

WORKDIR /mailer

COPY ./mailer.sh .

RUN adduser -DHs /bin/sh example \
    && chown -R example /mailer \
    && chmod +x /mailer/mailer.sh

EXPOSE 50000

USER example

LABEL cn.homqyy.docker.author="homqyy"
LABEL cn.homqyy.docker.email="yilupiaoxuewhq@163.com"
LABEL cn.homqyy.docker.title="example mailer"

CMD ["/mailer/mailer.sh"]
